package com.lucnn.diamond.spring.condition;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

public class MyImportSelector implements ImportSelector{

//    返回值：要导入组件的全类目
//    importingClassMetadata 标注了@Import类上的所有注解信息
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.lucnn.diamond.spring.bean.Yellow"};
    }
}
